package com.sk.waste.app.models

import com.sk.waste.app.BuildConfig
import org.json.JSONObject
import java.io.Serializable

/**
 *  @time 2025/05/01  11:30
 *  @desc VIPmodel
 */
class VipModel : Serializable {
    var code: String = ""//
    var name: String = ""//
    var price: String = ""//
    var type: String = ""//
    var value: String = ""//
    var description: String = ""//

    fun getModelInfo(json: JSONObject) {
        code = json.getString("code")
        name = json.getString("name")
        if (BuildConfig.DEBUG) {
            price = json.getString("price")
        } else {
            price = json.getInt("price").toString()
        }
        type = json.getString("type")
        value = json.getString("value")
        description = json.getString("description")
    }
}